Prototype Plan: Odoo PSA MVP
Purpose: Guide for the Lead Architect to build the initial prototype in the live Odoo environment based on the research findings.
Step 1: Data Model Implementation (Studio)
- Enable Developer Mode in Odoo.
- Open Studio and create a new App named "Polaris PSA".
- Create Model
x_client_assetwith fields:x_name(Char)x_serial_number(Char)x_partner_id(Many2one -> Contact)x_assigned_user_id(Many2one -> Contact)x_pulseway_id(Char, Indexed)x_status(Selection: Active, Archived)
- Modify Helpdesk Ticket Form:
- Add Many2one
x_asset_id(Filter: Partner = Ticket Partner).
- Add Many2one
Step 2: Automation Rules (Server Actions)
- Webhook Handler:
- Create a "Server Action" -> "Execute Python Code".
- Paste logic from
Odoo-PSA-Architecture.md(Section: Webhook Handler). - Create an "Automation Rule" -> Trigger: Webhook.
- Link the Server Action.
- Test: Send sample JSON from Postman to the Webhook URL.
- Partner Sync:
- Create "Automation Rule" on
res.partner. - Trigger: On Creation.
- Paste logic from
Odoo-PSA-Architecture.md(Section: Downstream Sync).
- Create "Automation Rule" on
Step 3: Billing Automation
- Create a "Scheduled Action".
- Frequency: Monthly (Day 15).
- Paste logic from
Odoo-PSA-Architecture.md(Section: Billing Sync). - Test: Run manually on a test subscription.
Step 4: Observability
- Install Grafana Infinity plugin in Grafana Cloud.
- Configure Pulseway API Datasource.
- Build "Fleet Health" dashboard.
- Connect Odoo PostgreSQL (Read-Only user) to Grafana.
- Build "Ticket Stats" dashboard.